package com.ziyia.a4_1_4;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class MainActivity3 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);
    }


    public void result(View view) {
        Intent intent = new Intent(this, MainActivity.class);
        intent.putExtra("data", "返回的数据");
        setResult(200, intent);
        finish();
    }

    public void finishCode(View view){
        finishActivity(200);
    }
}